<template>
    <div>
    <el-alert
            title="警告提示"
            type="warning"
            description="点击`开始考试`后将自动进入考试，请诚信考试！"
            style="margin-bottom: 10px"
            show-icon>
    </el-alert>
    <el-card class="box-card" style="text-align: left">
        <div class="text item" style="margin: 20px">
            <span style="font-weight:bold;">考试名称:  </span>{{examInfo.name}}
        </div>
        <div class="text item" style="margin: 20px">
            <span style="font-weight:bold;">考试时长:  </span>{{examInfo.duration}}
        </div>
        <div class="text item" style="margin: 20px">
            <span style="font-weight:bold;">试卷总分:  </span>{{examInfo.paper.totalScore}}
        </div>
        <div class="text item" style="margin: 20px">
            <span style="font-weight:bold;">及格分数:  </span>{{examInfo.paper.totalScore}}
        </div>
        <div class="text item" style="margin: 20px">
            <span style="font-weight:bold;">考试说明:  </span>{{examInfo.description}}
        </div>
    </el-card>
        <div style="text-align: left">
        <el-button  type="primary" style="margin: 10px" @click="$router.push('/start/online/Exams')" >进入考试</el-button>
        <el-button @click="$router.go(-1)">返回</el-button>
        </div>
    </div>
</template>
<script>
export default {
    created() {
        this.examInfo=this.$route.params
        this.$store.state.examInfo=this.examInfo;

    },
    data(){
      return{
          examInfo:{},
      }
    }
}
</script>
